import {adminUrl} from "@/utils/baseUrl.js"
import request from '@/utils/request'

// 创建教学计划时间
export function createTime(data) {
  return request({
    url: adminUrl + '/study/time/create',
    method: 'post',
    data: data
  })
}

// 更新教学计划时间
export function updateTime(data) {
  return request({
    url: adminUrl + '/study/time/update',
    method: 'put',
    data: data
  })
}

// 删除教学计划时间
export function deleteTime(id) {
  return request({
    url: adminUrl + '/study/time/delete?id=' + id,
    method: 'delete'
  })
}

// 获得教学计划时间
export function getTime(id) {
  return request({
    url: adminUrl + '/study/time/get?id=' + id,
    method: 'get'
  })
}

// 获得教学计划时间分页
export function getTimePage(query) {
  return request({
    url: adminUrl + '/study/time/page',
    method: 'get',
    params: query
  })
}// 获得教学计划时间分页
export function getTimeAllList(query) {
  return request({
    url: adminUrl + '/study/time/allList',
    method: 'get',
    params: query
  })
}

// 导出教学计划时间 Excel
export function exportTimeExcel(query) {
  return request({
    url: adminUrl + '/study/time/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}


